package com.hyq.mediator;
/**
* @ClassName: ConcreteMediator 
* @Description: 中介者实现类
* @author Janus
 */
public class ConcreteMediator extends Mediator {
	/**
	 * 各个同事聚在一起进行交流
	 * 调用同事 A、B、C
	 */
	@Override
	public void communicateA() {
		super.A.sendMsg();
		super.B.sendMsg3();
		super.C.sendMsg3();
	}

	@Override
	public void communicateB() {
		super.B.sendMsg();
		super.A.sendMsg3();
		super.C.sendMsg3();	
		
	}

	@Override
	public void communicateC() {
		super.C.sendMsg();	
		super.B.sendMsg3();
		super.A.sendMsg3();	
	}

}
